cmake_minimum_required(VERSION 3.20)

project(glStudy)

SET(CMAKE_CXX_STANDARD 14)
SET(CMAKE_C_STANDARD 11)

#指定输出路径
SET(OUT_DIR ${CMAKE_CURRENT_SOURCE_DIR}/out)
if (NOT EXISTS ${OUT_DIR})
    file(MAKE_DIRECTORY ${OUT_DIR})
endif ()
SET(EXECUTABLE_OUTPUT_PATH ${OUT_DIR})
SET(LIBRARY_OUTPUT_PATH ${OUT_DIR})


add_subdirectory(glStudy)